#-*- coding: utf-8 -*-
'''
models.py
'''
from apps import db

class User(db.Model):
    __tablename__ = 'users'
    id = db.Column(db.Integer, primary_key = True)
    names = db.Column(db.String(64), index = True, unique = True)
    email = db.Column(db.String(120), index = True, unique = True)
    def __init__(self, names=None, email=None):
        self.names = names
        self.email = email

    def __repr__(self):
        return '<User %r>' % (self.names)